<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>审核页面</title>
    <style type="text/css">
        table {border-collapse: collapse; font-size: 14px; width: 80%; margin: auto}
        table, th, td {border: 1px solid darkslategray;padding: 10px}
    </style>
</head>
<body>

<h3>欢迎：</span></h3>

<table class="list">
    <tr>
        <th>商品ID</th>
        <th>商品名称</th>
        <th>商品价格</th>
        <th>商品数量</th>
        <th>商品状态</th>
        <th>审核</th>
        <th>是否上架</th>
        <th>操作</th>
    </tr>
    <tr th:each="goods : ${goodList}">
        <td th:text="${goods.id}"></td>
        <td th:text="${goods.name}"></td>
        <td th:text="${goods.price}"></td>
        <td th:text="${goods.num}"></td>
        <td th:text="${goods.status}==1?'启用':'未启用'"></td>
        <td th:text="${goods.shenhe} == 0 ? '待审核': (${goods.shenhe} == 1 ? '审核成功': (${goods.shenhe} == 2 ? '审核失败' : '未审核'))"></td>
        <td th:text="${goods.shangjia}==1?'上架':'下架'"></td>
        <td>
            <a th:href="@{/good/findBy(id=${goods.id})}">修改</a>
        </td>

    </tr>
</table>
</body>
</html>